package com.ruoyi.driver.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 司机接单/拒单操作记录对象 driver_order_operation
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
public class DriverOrderOperation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作记录ID */
    private String id;

    /** 订单唯一标识 */
    @Excel(name = "订单唯一标识")
    private String orderId;

    /** 司机ID */
    @Excel(name = "司机ID")
    private Long driverId;

    /** 操作类型：1-接单 2-拒单 */
    @Excel(name = "操作类型：1-接单 2-拒单")
    private Long operationType;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    /** 拒单原因（operation_type=2时必填） */
    @Excel(name = "拒单原因", readConverterExp = "o=peration_type=2时必填")
    private String rejectReason;

    /** 订单状态变更：1-待接单 2-已接单 3-已拒单 */
    @Excel(name = "订单状态变更：1-待接单 2-已接单 3-已拒单")
    private Long orderStatus;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }

    public void setOperationType(Long operationType) 
    {
        this.operationType = operationType;
    }

    public Long getOperationType() 
    {
        return operationType;
    }

    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }

    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }

    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("driverId", getDriverId())
            .append("operationType", getOperationType())
            .append("operationTime", getOperationTime())
            .append("rejectReason", getRejectReason())
            .append("orderStatus", getOrderStatus())
            .toString();
    }
}
